package com.ikm.demo.controller;

import com.ikm.demo.entity.SysOrgPerson;
import com.ikm.demo.service.SysOrgPersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class SysOrgPersonController {

    @Autowired
    private SysOrgPersonService sysOrgPersonService;

    @RequestMapping(value="/ikm/person",method = RequestMethod.GET)
    public String getPersonInfo(){
        List<SysOrgPerson> personList  = sysOrgPersonService.getPerson();
        return personList.toString();
    }
}
